/**
 * @Title: HelloService_Rest.java
 * @Package: com.itic.appbase.applications.webservice.cxf.rest
 * @author: idong
 * @date: May 20, 2015 4:33:53 PM
 * @version: V1.0
 */

package com.itic.appbase.applications.webservice.cxf.rest;

import com.itic.appbase.applications.webservice.cxf.beans.UserWB;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * <p>
 * Company: itic
 * </p>
 * 
 * @author: idong
 * @date: May 20, 2015 4:33:53 PM
 * @version: V1.0
 */
@Path(value = "/hello_rest")
public interface HelloService_Rest {
    @GET
    @Path(value = "/sayHi/{name}")
    @Produces(MediaType.TEXT_PLAIN)
    public String sayHi(@PathParam("name") String name);

    @GET
    @Path(value = "/getUserInfo/{username}")
    @Produces({ MediaType.APPLICATION_XML })
    UserWB getUserInfo(@PathParam("username") String username);

}
